<?php


namespace app\user\model;


use app\index\model\Base;

class EmrRecords extends  Base
{
    protected $pk = 'er_id';
    public function user()
    {
        return $this->belongsTo('User','u_id','u_id');
    }
    public function emrImg()
    {
        return $this->hasMany('EmrImg','er_id','er_id');
    }
}